<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>02.Axios的POST请求</title>
</head>
<body>
<div id="app">

</div>
<!--引入vue-->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!--引入Axios-->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
    axios.post("http://localhost:8989/user/save", {
        username: "王昭君",
        email: "742677204@qq.com",
        age: 18,
        phone: 15919166087
    }).then(function (a) {
        console.log(a.data);
    }).catch(function (c) {
        console.log(c.data)
    });
    const app = new Vue({
        el: "#app",
        data: {},
        methods: {}
    });
</script>
</body>
</html>